/**
 * Created by wdcy336 on 2015/7/20.
 */
Ext.define('Monkey.view.code.TemplateModel', {
    extend: 'Ext.app.ViewModel',

    alias: 'viewmodel.vm-codetemplate',

    data: {
        isAdd: false,

        id: 0,
        name: '',
        packagePath: '',
        className: '',
        view: '',
        remark: ''
    },


    setModelData: function (data) {
        this.data.id = data.id;
        this.data.name = data.name;
        this.data.packagePath = data.packagePath;
        this.data.view = data.view;
        this.data.className = data.className;
        this.data.remark = data.remark;
    }
});